package com.example.test2018131379.mapper;

import com.example.test2018131379.bean.UserBean;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UserMapper {

    UserBean getInfo(String name, String password);

    List<UserBean> getALLUser();

    int insertUser(UserBean userBean);//插入新用户
    //删除用户
    int deleteUser(String id);
    //获取用户信息
    UserBean getUserById(String id);
    //修改数据
    int updateUser(UserBean userBean);

    List<UserBean> selectUser4Page();
}
